import request from '@/utils/request'


// 查询角色列表
export function listOrder(query) {
  return request({
    url: '/didi-order/order/getAllOrderList',
    method: 'get',
    params: query
  })
}

// 查询订单详细
export function getOrder(id) {
  return request({
    url: '/didi-order/order/selectTOrderVo',
    method: 'get',
    params:{ 
      id:id
     }
  })
}

// 新增订单
export function addOrder(data) {
  return request({
    url: '/didi-order/order/addOrder',
    method: 'get',
    params: data
  })
}

// 修改订单
export function updateOrder(data) {
  return request({
    url: '/didi-order/order/updateTOrder',
    method: 'put',
    data: data
  })
}

// 删除订单
export function delOrder(ids) {
  return request({
    url: '/didi-order/order/deleteTOrderByIds',
    method: 'delete',
    data: ids
  })
}



